package com.zhanghe.chap01;

import com.zhanghe.annnation.NotThreadSafe;
/**  
 * UnSafeSequance
 *   
 * @author Clevo  
 * @date 2017/12/26 0:14 
 */  
@NotThreadSafe
public class UnSafeSequance {
	
	private int value = 0;
	
	
	/**
	 * 获取一个唯一的值
	 * @return
	 * @author Clevo
	 * @date 2017/12/26 0:15
	*/
	public int getNext(){
		return value++;
	}


	public int getValue() {
		return value;
	}


	public void setValue( int value ) {
		this.value = value;
	}
	
	
}
